﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class UnityEditorState : MonoBehaviour {
    public static bool isPaused = false;
    private void Awake()
    {
        //EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
        EditorApplication.pauseStateChanged += OnPauseModeStateChanged;
    }
    private void OnPauseModeStateChanged(PauseState state)
    {
        isPaused = state == PauseState.Paused ? true : false;
    }
}
